home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / doc / libasound2-plugins / a52.txt next >
Text File  |  2009-05-06  |  2KB  |  66 lines

  1. A52 OUTPUT PLUGIN
  2. =================
  3.  
  4. This plugin converts S16 linear format to A52 compressed stream and
  5. send to an SPDIF output.  It requires libavcodec for encoding the
  6. audio stream.
  7.  
  8. A PCM using this plugin can be defined like below:
  9.  
  10.     pcm.myout {
  11.         type a52
  12.     }
  13.  
  14. In addition, the following options are available:
  15.  
  16. - The "card" option specifies the card ID or number of the SPDIF.
  17.   The output PCM becomes "iec958:{CARD=$CARD}" with extra AESx
  18.   settings.  When omitted, the default card is used.
  19.  
  20. - The "slavepcm" option specifies a string of the slave PCM
  21.   explicitly.  This is useful if a device has no proper SPDIF
  22.   configuration (e.g. usb-audio), or if you want to pass your own PCM
  23.   definition.  This option is exclusive with "card" option.
  24.  
  25. - The "rate" option specifies the input/output sample rate in HZ.
  26.   The accepted rate is either 44100 or 48000.
  27.   When omitted, 48000 is used.
  28.  
  29. - The "channels" option specifies the number of _input_ channels.
  30.   It must be either 2, 4 or 6.  The default value is 6.
  31.  
  32. - The "bitrate" option specifies the bit-rate of the compressed
  33.   stream in kbps.  Too small or too big value may not be accepted by
  34.   the encoder.  When omitted, 448 is used.
  35.  
  36. - The "format" option specifies the output format type.  It's either
  37.   S16_LE or S16_BE.  As default, S16_LE is used.
  38.  
  39. An example using the secondary card, 44.1kHz, 4 channels, output
  40. bitrate 256kbps and output format S16_BE looks like below: 
  41.  
  42.     pcm.myout {
  43.         type a52
  44.         card 1
  45.         rate 44100
  46.         channels 4
  47.         bitrate 256
  48.         format S16_BE
  49.     }
  50.  
  51. For using slavepcm option,
  52.  
  53.     pcm.mypcm {
  54.         card 1
  55.         device 2
  56.     }
  57.  
  58.     pcm.myout {
  59.         type a52
  60.         slavepcm "mypcm"
  61.     }
  62.  
  63.  
  64. The plugin reads always S16 format (i.e. native-endian) as input, so
  65. you'd need plug layer appropriately to covert it.
  66.